package com.ctshk.rpc.hotel.req.h5;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * @description 预订中心-酒店详情req-C端H5
 * @author 谢诗宏
 * @date 2021/4/20
 */
@Data
@ApiModel(description="预订中心-酒店详情信息req-C端H5")
public class HotelDetailsQueryH5Req implements Serializable {

    private static final long serialVersionUID = -4984742381038614633L;

    @NotNull(message = "酒店id必填")
    @ApiModelProperty(value = "酒店id", required = true)
    private Long id;

    @ApiModelProperty(value = "房型id", hidden = true)
    private Long roomId;

    @NotNull(message = "请填写入住日期")
    @ApiModelProperty(value = "入住日期", example = "2021-05-01", required = true)
    private LocalDate checkInDate;

    @NotNull(message = "请填写离店日期")
    @ApiModelProperty(value = "离店日期", example = "2021-05-03", required = true)
    private LocalDate checkOutDate;

    @NotNull(message = "请填写房间数")
    @ApiModelProperty(value = "房间数", example = "2", required = true)
    private Integer roomNum;

    @NotNull(message = "成人数不能为空")
    @ApiModelProperty(value = "成人数", example = "2", required = true)
    private Integer adultNum;

    @NotNull(message = "小童数不能为空")
    @ApiModelProperty(value = "小童数-没有传0", example = "4", required = true)
    private Integer childrenNum;

    @ApiModelProperty(value = "总人数", example = "4", hidden = true)
    private Integer peopleNum;

    @ApiModelProperty(value = "是否需要加床,入住人数有余数时使用", hidden = true)
    private Boolean isAddBed;

    @ApiModelProperty(value = "C端用户Id,前端不用传")
    private Long userId;
}
